home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / AI88PATT / INFOMACS.UBM < prev    next >
Text File  |  1990-01-08  |  3KB  |  28 lines

  1.     I have been writing Mac and Vax programs that output files
  2. in Adobe Illustrator 88 format. In doing so I have required a program
  3. to take MacDraw patterns and convert them into AI88 Patterns.
  4. The way I do this is to take the hexadecimal representation of a pattern
  5. and type it into a small Mac Program I have written (Think C 4.0) row by row, two
  6. hex characters at a time. The  resulting patterns look pretty nice, especially the bit type patterns like the Ice Cream Cone, Checkers, Molecules, Indian Jewelry, etc. The only patterns that didn't look  so nice were the diagonal patterns which exhibited Moire patterns no matter what the magnification. So to get around that I created straight line patterns that I then rotated plus or minus 45 degrees and they look great. 
  7.     Why would anyone want to creat AI88 patterns from MacDraw patterns? 
  8. First off for my programs I  needed patterns and wanted postscript output. AI88 patterns are completely transformable, they can be resized, rotated, offset, skewed to your heart's content or your eye's tolerance for unaesthetic patterns. Thus they can be used in perspective, blowouts, etc. Because they are raw postscript, they seem to print out faster though I have no scientific way to profile this. The disadvantage is that with these patterns it takes a  long time to preview, normal artwork mode is fine. It's best just to print out documents containing these patterns, printing can often be faster than displaying. The preceding does not apply if you  have a monster machine. Sorry a MacPlus is not a monster machine
  9.        In this package I have included the following,
  10. 1. An Adobe Illustrator 88 (AI88) document containing the converted standard
  11. MacDraw patterns. 
  12. 2. A MacDraw document containing the same MacDraw patterns.
  13. 3. An AI88 document containing further Illustrator patterns that may be useful,
  14.    primarily from marine geology but they are most likely of more general use.
  15. 4. A Think C program in the standard console environment 
  16. and source code, (Warning: The hex decomposition routines
  17. are quick and dirty and will make any computer scientist lose his lunch, 
  18. but they work ). The patterns document must be opened from within AI88, it
  19. will not be a double clickable document.
  20.  
  21.     An important aside came up from writing the source code. I found that when
  22. opening up AI88 documents the postscript libraries were automatically
  23. added. Therefore you can considerably reduce the size of the AI88 documents
  24. your code produces if you use a header without the libraries. The size
  25. reduction is from 12K of text to 12 lines of text. The subroutine header.c
  26. demonstrates the minimum header required for the AI88 program to recognize
  27. a document.
  28.